import request from '@/utils/request'

// 查询班级学员列表
export function listClassStudent(query) {
  return request({
    url: '/jiaopei/classStudent/list',
    method: 'get',
    params: query
  })
}

// 查询班级学员详细
export function getClassStudent(id) {
  return request({
    url: '/jiaopei/classStudent/' + id,
    method: 'get'
  })
}

// 新增班级学员
export function addClassStudent(data) {
  return request({
    url: '/jiaopei/classStudent',
    method: 'post',
    data: data
  })
}

// 修改班级学员
export function updateClassStudent(data) {
  return request({
    url: '/jiaopei/classStudent',
    method: 'put',
    data: data
  })
}

// 删除班级学员
export function delClassStudent(id) {
  return request({
    url: '/jiaopei/classStudent/' + id,
    method: 'delete'
  })
}
